package cn.wgx.springsecuritystudy.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class UserService {

    @Autowired
    private JdbcTemplate jdbcTemplate;


    public Map g(){
        return  jdbcTemplate.queryForMap("select * from users");
    }

}
